home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / catD / itoemajor.z / itoemajor
Encoding:
Text File  |  1998-10-30  |  3.5 KB  |  66 lines

  1.  
  2.  
  3.  
  4. iiiittttooooeeeemmmmaaaajjjjoooorrrr((((DDDD3333))))                                                    iiiittttooooeeeemmmmaaaajjjjoooorrrr((((DDDD3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _iiii_tttt_oooo_eeee_mmmm_aaaa_jjjj_oooo_rrrr - convert internal to external major device number
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
  14.      _iiii_nnnn_tttt _iiii_tttt_oooo_eeee_mmmm_aaaa_jjjj_oooo_rrrr_((((_mmmm_aaaa_jjjj_oooo_rrrr______tttt _i_m_a_j_,,,, _iiii_nnnn_tttt _p_r_e_v_e_m_a_j_))))_;;;;
  15.  
  16.    AAAArrrrgggguuuummmmeeeennnnttttssss
  17.      _i_m_a_j      Internal major number.
  18.  
  19.      _p_r_e_v_e_m_a_j  Most recently obtained external major number (or _NNNN_OOOO_DDDD_EEEE_VVVV, if this
  20.                is the first time the function has been called).
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      _iiii_tttt_oooo_eeee_mmmm_aaaa_jjjj_oooo_rrrr converts the internal major number _i_m_a_j to the external major
  24.      number.  The external-to-internal major number mapping can be many-to-
  25.      one, and so any internal major number may correspond to more than one
  26.      external major number.
  27.  
  28.    RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
  29.      External major number, or _NNNN_OOOO_DDDD_EEEE_VVVV, if all have been searched.
  30.  
  31. UUUUSSSSAAAAGGGGEEEE
  32.      By repeatedly invoking this function and passing the most recent external
  33.      major number obtained, the driver can obtain all possible external major
  34.      number values.
  35.  
  36.      See _gggg_eeee_tttt_eeee_mmmm_aaaa_jjjj_oooo_rrrr(D3) for an explanation of external and internal major
  37.      numbers.
  38.  
  39.    LLLLeeeevvvveeeellll
  40.      Initialization, Base or Interrupt.
  41.  
  42.    SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
  43.      Does not sleep.
  44.  
  45.      Driver-defined basic locks, read/write locks, and sleep locks may be held
  46.      across calls to this function.
  47.  
  48. RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
  49.      _eeee_tttt_oooo_iiii_mmmm_aaaa_jjjj_oooo_rrrr(D3), _gggg_eeee_tttt_eeee_mmmm_aaaa_jjjj_oooo_rrrr(D3), _gggg_eeee_tttt_eeee_mmmm_iiii_nnnn_oooo_rrrr(D3), _gggg_eeee_tttt_mmmm_aaaa_jjjj_oooo_rrrr(D3), _gggg_eeee_tttt_mmmm_iiii_nnnn_oooo_rrrr(D3),
  50.      _mmmm_aaaa_kkkk_eeee_dddd_eeee_vvvv_iiii_cccc_eeee(D3)
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.